package com.item 
{
	import flash.display.MovieClip;
	/**
	 * ...
	 * @author wen
	 */
	public class Rabbit extends ItemBase
	{
		public function Rabbit(mc:MovieClip)
		{
			super(mc);
		}
		
		override public function init():void 
		{
			view.gotoAndStop(3);
		}
		
		public function setState(state:String="run"):void 
		{
			switch(state)
			{
				case "run":
					view.gotoAndStop(1);
					break;
				case "jump":
					view.gotoAndStop(2);
					view.a.gotoAndPlay(1);
					break;
				case "sit":
					view.gotoAndStop(3);
					//view.a.gotoAndPlay(1);
					break;
			}
		}
	}

}